package com.longge;

/**
 * @program: my-code
 * @description:
 * @author: longge
 * @create: 2021-03-09 23:51
 */
public class Game {
    public int game(int[] guess, int[] answer) {
        int i = 2;
        int res = 0;
        while (i>=0){
            i--;
            if (guess[i]==answer[i]) res++;
        }
        return res;
    }
}
